if( typeof window === 'undefined' || typeof MessageChannel != 'function')